package com.lxh.decorator;

/**
 * 装饰着模式
 */
public class Father {
    public static void main(String[] args) {
        SchoolReport sr;

        sr = new FouthSchoolReport();
        sr = new HighScoreDecorator(sr);
        sr = new SortDecorator(sr);

        sr.report();
        sr.sign("l");
    }
}
